//
//  MoreTableViewCell.m
//  LOL_PalmarHelper
//
//  Created by dllo on 15/6/19.
//  Copyright (c) 2015年 hantao. All rights reserved.
//

#import "MoreTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation MoreTableViewCell






- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        [self createSubView];
    }
    
    return self;
}



- (void)createSubView
{
    
    
 
    //    图片
    self.imageview1 = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 35, 35)];
    
    [self.contentView addSubview:self.imageview1];
    
    
    
    
    
    //    文字
    self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(self.imageview1.bounds.size.width + 20, self.contentView.bounds.size.height / 3, 200, self.contentView.frame.size.height / 3)];
    
    [self.contentView addSubview:self.label1];
    //    字体大小
//    self.label1.font = [UIFont systemFontOfSize:18];
    
//    self.label1.backgroundColor = [UIColor redColor];
    
    self.label1.numberOfLines = 1;
    
   
    

    
}


-(void)setStr:(NSString *)str
{
    
    
    _str = str;
    
//    self.imageview1.image = [UIImage imageNamed:self.str];
    [self.imageview1 sd_setImageWithURL:[NSURL URLWithString:self.str]];

    NSLog(@"-------%@", _str);
    
}

-(void)setStr1:(NSString *)str1
{
    
    
    _str1 = str1;
    
     self.label1.text = self.str1;
    
    
}
























- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
